Binocular-vision-based method for tracking fruit space attitude and fruit space motion

ABSTRACT

A binocular-vision-based method for tracking fruit space attitude and fruit space motion, the method comprising: establishing a connected base coordinate system by taking a junction of a fruit and a fruit stem as an origin; statically photographing a feature point on the surface of the fruit and a point of the connected base coordinate system established at the junction of the fruit and the fruit stem; storing a photographed image; acquiring an inherent relationship between the feature point and the connected base coordinate system; photographing dynamic motion of the fruit; acquiring absolute coordinates of the feature point on the surface of the fruit; calculating, according to the inherent relationship between the feature point and the connected base coordinate system, absolute coordinates of a point of the connected base coordinate system at each moment corresponding to each frame of image; and respectively calculating the displacement, instantaneous speed and instantaneous acceleration of the fruit, calculating swing angular displacement and swing angular acceleration of the fruit, and calculating a fruit torsion angular speed and a fruit torsion angular acceleration at the moment t. The study of a fruit motion state in the field of forest fruit harvest through vibration is performed, so that the motion of fruits can be better tracked.

FIELD OF THE INVENTION

The present invention belongs to the field of fruit tree harvesting in agriculture and forestry, and specifically relates to a binocular-vision-based method for tracking fruit space attitude and fruit space motion, which is used in the study of fruit motion states in the field of fruit vibration harvesting.

BACKGROUND OF THE INVENTION

Fruit harvesting is the most time-consuming and laborious part of fruit production. For dried fruits such as red dates, walnuts, and ginkgo, the most effective harvesting method is mechanical vibration harvesting. The harvesting effect of its vibration harvesting machinery is related to many factors, including the growth characteristics of fruit trees and the working parameters of mechanical vibration. The research on the vibratory harvesting of forest fruits is more about viewing the tree itself as a second-order system, detecting the relationship between excitation and response, and measuring the overall stiffness and damping ratio of the tree. In recent years, more detailed research has been carried out in China and a simplified mechanical model of tree trunk and branch vibration has been established. Through experiments and theoretical calculations, it is believed that the cantilever straight beam model is more accurate, which provides a theoretical basis for the research of vibratory harvesting machinery. However, there are still gaps in the research on the movement of fruits during the vibration harvesting process, in order to explain the principle of vibratory fruit dropping in more detail, it is necessary to study the movement of fruits.

SUMMARY OF THE INVENTION

The technical problem to be solved by the present invention is to provide a binocular-vision-based method for tracking fruit space attitude and fruit space motion in response to the above-mentioned shortcomings of the prior art. This binocular-vision-based method for tracking fruit space attitude and fruit space motion method is aimed at the research of fruit movement state in the field of forest fruit vibration harvesting, which can better track the movement of fruit.

In order to achieve the above-mentioned technical objectives, the technical solutions adopted by the present invention are:

a binocular-vision-based method for tracking fruit space attitude and fruit space motion, comprising:

(1) marking three feature points

C₃ on a surface of a fruit;

(2) establishing a connected base coordinate system by taking a junction of the fruit and a fruit stem as an origin, a X axis, a Y axis, and a Z axis of the connected base coordinate system are marked as a X connected-axis, a Y connected-axis and a Z connected-axis, respectively, and the origin of the connected base coordinate system is marked as O₁, an end point of the unit vector in a positive direction of the X connected-axis is marked as X₁, an end point of the unit vector in a positive direction of the Y connected-axis is marked as Y₁, an end point of the unit vector in a positive direction of the Z connected-axis is marked as Z₁;

(3) establishing a public reference base coordinate system;

(4) statically photographing the three feature points on the surface of the fruit and connected base coordinate system points

Z₁ established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points and connected base coordinate system points

Z₁ in the images, acquiring a absolute coordinate of the feature points

C₃ and the connected base coordinate system points

Z₁, and then acquiring an inherit relationship between the feature points and the connected base coordinate system;

(5) photographing the fruit dynamic motion, using Phantom software to store each frame of the image in the photographed video, using TEMA software to process the feature points in the images to acquiring the absolute coordinate of the feature points on the fruit surface, according to an inherent relationship between the feature points and the connected base coordinate system, the absolute coordinate of each frame of image corresponding to the connected base coordinate system points

Z₁ at each moment being calculated by inverse rotation transformation, and calculating an angle between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula, and the angle representing a swing posture of the fruit;

(6) rotating the {right arrow over (O₁Z₁)} at each moment to a position that coincides with the Z axis in the public reference base coordinate system, and calculating an angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle representing a twisting posture of the fruit; and

(7) setting moments corresponding to two adjacent frames to t+1 moment and t moment, and calculating a displacement of the point O₁ along the X axis, Y axis and Z axis of the public reference base coordinate system at t+1 moment and t moment respectively, calculating an instantaneous speed along the X axis, an instantaneous speed along the Y axis, and an instantaneous speed along the Z axis of the fruit at t moment according to the displacement, calculating an instantaneous acceleration along the X axis, an instantaneous acceleration along the Y axis and an instantaneous acceleration along the Z axis of the fruit at t moment according to the instantaneous speed, calculating a swing angular displacement of the fruit in a time interval between the two adjacent frames of images, sequentially calculating a swing angular speed of the fruit at t moment and a swing angular acceleration of the fruit at t moment via the swing angular displacement, and calculating a torsion angular speed of the fruit at t moment and a torsion angular acceleration of the fruit at t moment according to the torsion angular degree from t moment to t+1 moment.

As a further improved technical solution for the present invention, the step (2) includes:

establishing the connected base coordinate system by taking a junction of the fruit and the fruit stem as the origin, and taking a line between the junction of the fruit and the fruit stem and a center point of the fruit as a center line, the center line being the Z axis of the connected base coordinate system, which being marked as the Z connected-axis, taking a direction from the central point pointing to the joining point as the positive direction of the Z connected-axis, establishing the X axis and Y axis of the connected base coordinate system on a plane perpendicular to the Z axis of the connected base coordinate system, and marking them as X connected-axis and Y connected-axis respectively; marking the origin of the connected base coordinate system as O₁, marking the end point of the unit vector in the positive direction of the X connected-axis as X₁, marking the end point of the unit vector in the positive direction of the Y₁ connected-axis as Y₁, and marking the end point of the unit vector in the positive direction of the Z connected-axis as Z1.

As a further improved technical solution for the present invention, the absolute coordinates are spatial coordinates in the public reference base coordinate system, and the unit vectors of the coordinate axis of the public reference base coordinate system are:

Z=(0 0 1)^(T).

As a further improved technical solution for the present invention, the step (4) includes:

(A) under static conditions, using two high-speed cameras to statically photograph the three feature points on the surface of the fruit and the points

Z₁ of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points

C₃ and the connected base coordinate system points

Z₁ in the images, acquiring the absolute coordinate of the feature points

C₃ and the absolute coordinate of the connected base coordinate system points

Z₁;

(b) creating vectors {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} via absolute coordinate, unitizing {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)}, creating vector

vector

vector {right arrow over (C₁Y₁)} and vector {right arrow over (C₁Z₁)};

(c) doing a vector product of unitized {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} to get: {right arrow over (Y)}={right arrow over (C₁C₂)}×{right arrow over (C₁C₃)}, doing a vector product of {right arrow over (X)}={right arrow over (C₁C₂)} and {right arrow over (Y)} to get: {right arrow over (Z)}={right arrow over (X)}× {right arrow over (Y)}, thus, establishing a coordinate system C_(xyz) by taking feature point C₁ as an origin, the coordinate axis vector of the coordinate system C_(xyz) is: {right arrow over (X_(C) _(xyz) )}=

{right arrow over (Y_(C) _(xyz) )}=

{right arrow over (Z_(C) _(xyz) )}=

calculating angles

γ_(x) between the vector {right arrow over (X_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system through the calculation formula of the space vector angle,

calculating angles

γ_(y) between the vector {right arrow over (Y_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system,

calculating angles

γ_(z) between the vector {right arrow over (Z_(C) _(xyz) )} and the X-axis, Y-axis and Z-axis of the public reference base coordinate system, then the coordinate conversion matrix is:

$\begin{matrix} {{A = \begin{pmatrix} {\cos\;\alpha_{x}} & {\cos\;\beta_{x}} & {\cos\;\gamma_{x}} \\ {\cos\;\alpha_{y}} & {\cos\;\beta_{y}} & {\cos\;\gamma_{z}} \\ {\cos\;\alpha_{z}} & {\cos\;\beta_{z}} & {\cos\;\gamma_{z}} \end{pmatrix}};} & (1) \end{matrix}$

the coordinates of point O₁ under the coordinate system C_(xyz) are obtained by formula (2):

$\begin{matrix} {{O_{1_{C_{xyz}}} = {{A*\overset{\rightarrow}{C_{1}O_{1}}} = {{\begin{pmatrix} {\cos\;\alpha_{x}} & {\cos\;\beta_{x}} & {\cos\;\gamma_{x}} \\ {\cos\;\alpha_{y}} & {\cos\;\beta_{y}} & {\cos\;\gamma_{z}} \\ {\cos\;\alpha_{z}} & {\cos\;\beta_{z}} & {\cos\;\gamma_{z}} \end{pmatrix}\begin{pmatrix} x_{o_{1}}^{\prime} \\ y_{o_{1}}^{\prime} \\ z_{o_{1}}^{\prime} \end{pmatrix}} = \begin{pmatrix} x_{O_{1_{C_{xyz}}}} \\ y_{O_{1_{C_{xyz}}}} \\ z_{O_{1_{C_{xyz}}}} \end{pmatrix}}}};} & (2) \end{matrix}$

wherein, {right arrow over (C₁O₁)}=(x_(O) ₁ ′ y_(O) ₁ ′ z_(O) ₁ ′)^(T), and obtained from (b) in step (4);

similarly,

$\begin{matrix} {X_{1_{C_{xyz}}} = {A^{*}\overset{\rightarrow}{C_{1}X_{1}}}} & \; \end{matrix}$

$Y_{1_{C_{xyz}}} = {{A^{*}\overset{\rightarrow}{C_{1}X_{1}}\mspace{14mu}{and}\mspace{14mu} Z_{1_{C_{xyz}}}} = {A^{*}\overset{\rightarrow}{C_{1}Z_{1}}}}$

can be obtained, wherein the coordinates of

$\begin{matrix} {X_{1_{C_{xyz}}}Y_{1_{C_{xyz}}}Z_{1_{C_{xyz}}}} & \; \end{matrix}$

are the coordinates of points

Z₁ under the coordinate system C_(xyz);

the coordinates of

O_(1_(C_(xyz)))X_(1_(C_(xyz)))Y_(1_(C_(xyz)))Z_(1_(C_(xyz)))

are the coordinates of points

Z₁ under the coordinate system C_(xyz), that is, representing the inherent relationship between the feature point and the connected base coordinate system.

As a further improved technical solution for the present invention, the step (5) includes:

(a) using two high-speed cameras to photograph the fruit dynamic motion, using Phantom software to store each frame of image of the photographed video, using TEMA software to process the feature points in the images, and obtaining the absolute coordinate of the feature points on the surface of the fruit;

(b) calculating angles

γ_(x) _(t) between the vector

$\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}$

and the X axis, Y axis, and Z axis of the public reference base coordinate system at t moment through the calculation formula of the space vector angle, calculating angles

γ_(y) _(t) , between the vector

$\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}$

and me x axis, Y axis and Z axis of the public reference base coordinate system, calculating angles

γ_(z) _(t) between the vector

$\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$

and the X axis, Y axis and Z axis of the public reference base coordinate system, wherein,

$\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$

are the coordinate axis vector of the coordinate system C_(xyz) established by taking the feature point C₁ in one frame of image corresponding to the t moment as an origin, then the coordinate conversion matrix is:

$\begin{matrix} {{A_{1} = \begin{pmatrix} {\cos\;\alpha_{x_{t}}} & {\cos\;{\beta_{x}}_{t}} & {\cos\;\gamma_{x_{t}}} \\ {\cos\;{\alpha_{y}}_{t}} & {\cos\;\beta_{y_{t}}} & {\cos\;\gamma_{z_{t}}} \\ {\cos\;\alpha_{z_{t}}} & {\cos\;\beta_{z_{t}}} & {\cos\;\gamma_{z_{t}}} \end{pmatrix}};} & (3) \end{matrix}$

the coordinates of point O₁ in the public reference base coordinate system, that is, the absolute coordinate is:

$\begin{matrix} {{\begin{pmatrix} x_{O_{1}} \\ y_{O_{1}} \\ z_{O_{1}} \end{pmatrix}\; = {\begin{pmatrix} x_{C_{1}} \\ y_{C_{1}} \\ z_{C_{1}} \end{pmatrix} + {A_{i}^{- 1}*\begin{pmatrix} x_{O_{1_{C_{xyz}}}} \\ y_{O_{1_{C_{xyz}}}} \\ z_{O_{1_{C_{xyz}}}} \end{pmatrix}}}};} & (4) \end{matrix}$

wherein (

Z_(O) ₁ ) are the absolute coordinate of the point O₁ under t moment, (

z_(O) ₁ ) are the absolute coordinate of the point C₁ under t moment,

(x_(O_(1_(C_(xyz))))y_(O_(1_(C_(xyz))))z_(O_(1_(C_(xyz)))))

are the coordinate of point O₁ in the coordinate system C_(xyz); similarly, calculating the absolute coordinate of the points X₁, Y₁, Z₁ under t moment;

each frame of image is independent of each other, and corresponds to a moment respectively, and solves the absolute coordinates of the points

Z₁ of the connected base coordinate system frame by frame;

calculating the angle θ between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula:

$\begin{matrix} {{\theta = {\arccos\left( \frac{{{x_{z_{1}}x_{z}} + {y_{z_{1}}y_{z}} + {z_{z_{1}}z_{z}}}}{\sqrt{x_{z_{1}}^{2} + y_{z_{1}}^{2} + z_{z_{1}}^{2}} \times \sqrt{x_{z}^{2} + y_{z}^{2} + z_{z}^{2}}} \right)}};} & (5) \end{matrix}$

wherein {right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ Z_(z) ₁ )^(T),

is the unit vector of the Z axis in the public reference base coordinate system, the angle θ between the vector {right arrow over (O₁Z₁)} and the Z axis in the public reference base coordinate system represents a swing posture of the fruit.

As a further improved technical solution for the present invention, the step (6) includes:

(a) using the axis rotation matrix to rotate {right arrow over (O₁Z₁)} at the moment corresponding to a certain frame of image to a position that coincides with the Z axis in the public reference base coordinate system, calculating the angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle represents a twisting posture of the fruit at the moment corresponding to the frame image, detail as follows:

the Z connected-axis direction vector of the frame of image is:

={right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ z_(z) ₁ )^(T), |{right arrow over (O₁Z₁)}|=√{square root over (x_(Z) ₁ ²+y_(Z) ₁ ²+z_(Z) ₁ ²)}, calculating the angle φ between the Z connected-axis and the Z axis in the public reference base coordinate system:

$\begin{matrix} {{\varphi = {\arccos\left( \frac{Z_{Z_{1}}}{\overset{\_}{O_{1}Z_{1}}} \right)}};} & (6) \end{matrix}$

calculating the angle ψ between the projection of the Z connected-axis in the X axis and Y axis of the public reference base coordinate system and the Y axis of the public reference base coordinate system:

$\begin{matrix} {{\psi = {\arccos\left( \frac{y_{Z_{1}}}{\sqrt{y_{Z_{1}}^{2} + x_{Z_{1}}^{2}}} \right)}};} & (7) \end{matrix}$

calculating the axis rotation matrix:

$\begin{matrix} {{T_{1} = \begin{pmatrix} {\cos\;\varphi} & 0 & {\sin\;\varphi} \\ 0 & 0 & 0 \\ {{- \sin}\;\varphi} & 0 & {\cos\;\varphi} \end{pmatrix}};} & (8) \\ {{T_{2} = \begin{pmatrix} {\cos\;\psi} & {{- \sin}\;\psi} & 0 \\ {\sin\;\psi} & {\cos\;\psi} & 0 \\ 0 & 0 & 1 \end{pmatrix}};} & (9) \end{matrix}$

the absolute coordinate of the rotated point X₁ is consistent with the coordinate of the rotated vector {right arrow over (O₁X₁)}, and the rotated vector {right arrow over (O₁X₁)} is:

$\begin{matrix} {{\begin{pmatrix} {x_{X_{1}}}^{\prime} \\ {y_{X_{1}}}^{\prime} \\ {z_{X_{1}}}^{\prime} \end{pmatrix} = {T_{2}^{- 1}*{T_{1}^{- 1_{*}}\begin{pmatrix} x_{x_{1}} \\ y_{X_{1}} \\ z_{X_{1}} \end{pmatrix}}}};} & (10) \end{matrix}$

wherein,

is the vector {right arrow over (O₁X₁)} before the {right arrow over (O₁Z₁)} of the frame of image is rotated;

the torsion angular degree is:

$\begin{matrix} {{\phi = {\arccos\mspace{11mu}\left( \frac{{{{x_{X_{1}}}^{\prime}x_{X}} + {{y_{X_{1}}}^{\prime}y_{X}} + {{z_{X_{1}}}^{\prime}z_{X}}}}{\sqrt{{x_{X_{1}}}^{,2} + {y_{X_{1}}}^{,2} + {z_{x_{1}}}^{,2}} \times \sqrt{{x_{X}}^{2} + {y_{X}}^{2} + {z_{X}}^{2}}} \right)}};} & (11) \end{matrix}$

the torsion angular degree is the angle between the rotated vector {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, which represents the torsion posture of the fruit at the moment corresponding to the frame image,

wherein

is the unit vector of the X axis in the public reference base coordinate system;

(b) Similarly, in (a) of step (6), calculating the twisting posture of the fruit at each moment corresponding to each frame image; and

As a further improved technical solution for the present invention, the step (7) includes:

(a) setting moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O₁ of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of the point O₁ along the X axis of the public reference base coordinate system at t+1 moment and t moment respectively:

S _(x) =x _(O) _(t+1) −x _(O) ₁   (12);

wherein

x_(O) ₁ are the coordinates x of the point O₁ under the public reference base coordinate system at t+1 moment and t moment; similarly, calculating the displacement S_(y) along the Y axis and the displacement S, along the Z axis of the point O₁ of the public reference base coordinate system at t+1 moment and t moment, and the combined displacement is:

S=√{square root over (S _(x) ² +S _(y) ² +S _(z) ²)}  (13);

(b) using the average speed of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous speed v_(x(t)) of the fruit along the X axis at t moment:

$\begin{matrix} {{v_{x{(t)}} = \frac{S_{x}}{\Delta\; t}};} & (14) \end{matrix}$

wherein Δt is the interval time between two frames of images; similarly, the instantaneous speed v_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous speed v_(z (t)) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained, then the combined speed of the fruit at t moment is:

v=√{square root over (v _(x (t)) ² +V _(y (t)) ² +v _(z (t)) ²)}  (15);

(c) using the acceleration of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous acceleration a_(x(t)) of the fruit along the X axis at the t moment:

$\begin{matrix} {{a_{x{(t)}} = \frac{v_{x{({t + 1})}} - v_{x{(t)}}}{\Delta t}};} & (16) \end{matrix}$

wherein v_(x (t+1)) is the instantaneous speed of the fruit along the X axis at t+1 moment, and v_(x(t)) is the instantaneous speed of the fruit along the X axis at t moment; similarly, the instantaneous acceleration a_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous acceleration a_(z (t)) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained; then the combined acceleration of the fruit at t moment is:

a=√{square root over (a _(x (t)) ² +a _(y (t)) ² +a _(z (t)) ²)}  (17);

(d) using the angle from the Z connected-axis at t moment to the Z connected-axis at t+1 moment to represent the swing angular displacement of the fruit in Δt:

$\begin{matrix} {{{\Delta\theta} = {\arccos\left( \frac{{{x_{Z_{1_{t + 1}}}x_{Z_{1_{t}}}} + {y_{Z_{1_{t + 1}}}y_{Z_{1_{t}}}} + {z_{Z_{1_{t + 1}}}z_{Z_{1_{t}}}}}}{\sqrt{{x_{Z_{1_{t + 1}}}}^{2} + {y_{Z_{1_{t + 1}}}}^{2} + {z_{Z_{1_{t + 1}}}}^{2}} \times \sqrt{{x_{Z_{1_{t}}}}^{2} + {y_{Z_{1_{t}}}}^{2} + {z_{Z_{1_{t}}}}^{2}}} \right)}};} & (18) \end{matrix}$

wherein

(x_(Z_(1_(t)))y_(Z_(1_(t)))z_(Z_(1_(t))))^(T)

is the direction vector of Z connected-axis at t moment, that is t moment vector {right arrow over (O₁Z₁)};

(x_(Z_(1_(t + 1)))y_(Z_(1_(t + 1)))z_(Z_(1_(t + 1))))^(T)

is the direction vector of Z connected-axis at t+1 moment, that is t+1 moment vector {right arrow over (O₁Z₁)};

(e) using the average swing angular speed from t moment to t+1 moment to express the t swing angular speed ω_(θ) _(t) of the fruit at t moment:

$\begin{matrix} {{\omega_{\theta_{t}} = \frac{\Delta\theta}{\Delta\; t}};} & (19) \end{matrix}$

(f) using the amount of change of the swing angular speed from t moment to t+1 moment to express the swing angular acceleration a_(θ) _(t) of the fruit at t moment:

$\begin{matrix} {{a_{\theta_{t}} = \frac{\omega_{\theta_{t + 1}} - \omega_{\theta_{t}}}{\Delta\; t}};} & (20) \end{matrix}$

(g) using the axis rotation matrix to rotate the Z connected-axis at t moment and the Z connected-axis at t+1 moment to the position that coincides with the Z connected-axis in the public reference base coordinate system, using formula (6) to formula (10) in step (a) in step (6) to calculate the rotated vector {right arrow over (O₁X₁)} at t moment and the rotated vector {right arrow over (O₁X₁)} at t+1 moment, then the torsion angular degree from t moment to t+1 moment is:

$\begin{matrix} {{{\Delta\phi} = {\arccos\left( \frac{{{{x_{X_{1_{t + 1}}}}^{,}x_{X_{t}}} + {{y_{X_{1_{t + 1}}}}^{,}y_{X_{t}}} + {{z_{X_{1_{t + 1}}}}^{,}z_{X_{t}}}}}{\sqrt{{x_{X_{1_{t + 1}}}}^{,2} + {{y_{X_{1_{t + 1}}}}^{,2}{z_{X_{1_{t + 1}}}}^{,2}}} \times \sqrt{{x_{X_{t}}}^{2} + {y_{X_{t}}}^{2} + {z_{X_{t}}}^{2}}} \right)}};} & (21) \end{matrix}$

wherein

$\begin{matrix} \left( {{x_{X_{1_{t}}}}^{\prime}{y_{X_{1_{t}}}}^{\prime}{z_{X_{1_{t}}}}^{\prime}} \right)^{T} & \; \end{matrix}$

is the rotated vector {right arrow over (O₁X₁)} at t moment,

(x_(X_(1_(t + 1)))^(′)y_(X_(1_(t + 1)))^(′)z_(X_(1_(t + 1)))^(′))^(T)

is the rotated vector {right arrow over (O₁X₁)} at t+1 moment;

the torsion angular speed of the fruit at t moment is:

$\begin{matrix} {{\omega_{\phi_{t}} = \frac{\Delta\phi}{\Delta\; t}};} & (22) \end{matrix}$

and

the torsion angular acceleration of the fruit at t moment is:

$\begin{matrix} {a_{\phi_{t}} = {\frac{\omega_{\phi_{t - 1}} - \omega_{\phi_{t}}}{\Delta\; t}.}} & \left( 23 \right. \end{matrix}$

The beneficial effect of the present invention is: when the inertial force generated by the vibration of vibrating fruit picking exceeds the separation force between the fruit and the fruit stem, the fruit is separated from the fruit branch or the fruit stem at the weakest connection point to complete the picking. The effect of fruit separation ultimately depends on the maximum inertial force generated when the fruit vibrates. Inertial force comes from acceleration, so acceleration response is one of the most important characteristics in fruit tree dynamics. This method can construct the trajectory of the fruit in the vibration process through the relationship between the conjoined base at the junction of the fruit stem and the fruit, and then solve the displacement, speed and acceleration of fruit at each moment, which is beneficial to explore the law of fruit movement. And the present invention can also obtain the swing posture and the torsion posture in the process of fruit vibration. This method is aimed at the study of fruit movement status in the field of fruit vibration harvesting, and can better track the movement of fruits.

BRIEF DESCRIPTION OF THE DRAWINGS

Various other features and attendant advantages of the present invention will be more fully appreciated from the following detailed description when considered in connection with the accompanying drawings in which like reference characters designate like or corresponding parts throughout the several views, and wherein:

FIG. 1 shows a flowchart of the method;

FIG. 2 shows a relationship diagram of a coordinate system in a fruit space;

FIG. 3 shows a coordinate curve of a feature point x;

FIG. 4 shows a coordinate curve of a feature point y;

FIG. 5 shows a coordinate curve of a feature point z;

FIG. 6 shows a schematic diagram of a fruit space motion;

FIG. 7 shows a translation trajectory of a fruit spatial;

FIG. 8 shows a position diagram of a conjoined base coordinate of two adjacent moments; and

FIG. 9 shows a schematic diagram of torsion angular.

DETAILED DESCRIPTION OF THE ILLUSTRATED EMBODIMENT

The following further describes the specific implementation of the present invention based on FIGS. 1 to 9.

This embodiment provides a binocular-vision-based method for tracking fruit space attitude and fruit space motion. FIG. 1 is an application step diagram of this embodiment. The content of FIG. 1 will be expanded in detail below.

Mark three feature points

C₃ on the surface of the fruit.

Establish a method for setting the fruit posture in space. The fruit is regarded as a rigid body, which does not deform in any state, and the fruit is regarded as a standard rotating body. establishing the connected base coordinate system by taking a junction of the fruit and the fruit stem as the origin, and taking a line between the junction of the fruit and the fruit stem and a center point of the fruit as a center line, the center line being the Z axis of the connected base coordinate system, which being marked as the Z connected-axis, taking a direction from the central point pointing to the joining point as the positive direction of the Z connected-axis, establishing the X-axis and Y-axis of the connected base coordinate system on a plane perpendicular to the Z-axis of the connected base coordinate system, and marking them as X connected-axis and Y connected-axis respectively; marking the origin of the connected base coordinate system as O₁, marking the end point of the unit vector in the positive direction of the X connected-axis as X₁, marking the end point of the unit vector in the positive direction of the Y connected-axis as Y₁, and marking the end point of the unit vector in the positive direction of the Z connected-axis as Z₁. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and twisting around the centerline. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and twisting around the centerline. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and torsion movement around the centerline.

Establish a public reference base coordinate system, the unit vector of the coordinate axis of the public reference base coordinate system is:

Z=(0 0 1)^(T).

The absolute coordinates described in this article are all spatial coordinates in the public reference base coordinate system. The vectors described in this article are all vectors in the public reference base coordinate system.

Since the feature points on the fruit surface tracked by the binocular camera cannot directly reflect the spatial posture of the fruit, this embodiment invented a method for creating a fixed relationship between the conjoined base and the feature points on the fruit surface. First, using two high-speed cameras 1-1 (M310, VEO 410) to statically photograph the three feature points on the surface of the fruit and the points

Z₁ of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points and the connected base coordinate system points

Z₁ in the images, export the spatial absolute coordinate of the feature points

C₃ and the points

Z₁ of the connected base coordinate system and then establish an inherent relationship between the feature points and the connected base coordinate system. Referring to FIG. 2, this embodiment uses two high-speed cameras 1-1 to photograph the fruit 2-1. Two high-speed cameras 1-1 can obtain depth information by binocular visual tracking, and obtain the spatial coordinates of the fruit 2-1. Reference numeral 1-1 in FIG. 2 represents a high-speed camera, reference numeral 2-1 represents a fruit, X, Y, and Z in FIG. 2 represent a public reference base coordinate system, and X connected-axis, Y connected-axis, Z connected-axis represent a connected base coordinate system, X_(cxyz), Y_(cxyz), Z_(cxyz) represent coordinate system C_(xyz). Specifically, it includes the following steps:

(a) under static conditions, using two high-speed cameras (M310, VEO 410) to statically photograph the three feature points

C₃ on the surface of the fruit and the points

Z₁ of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points

C₃ and the connected base coordinate system points

Z₁ in the images, acquiring the absolute coordinate of the feature points

C₃ and the absolute coordinate of the connected base coordinate system points

Z₁; the absolute coordinate of feature point C₂ is (

z_(C) ₂ )^(T), the absolute coordinate of feature point C₁ is (

z_(C) ₁ )^(T), the

absolute coordinate of feature point C₃ is (

z_(C) ₃ )^(T);

(b) creating vectors {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} via absolute coordinate, unitizing {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)}, {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} are:

{right arrow over (C₁C₂)}=(X_(C) ₂ −

y_(C) ₂ −

z_(C) ₂ −Z_(C) ₁ )^(T), {right arrow over (C₁C₃)}=(x_(C) ₃ −

y_(C) ₃ −

z_(C) ₃ −z_(C) ₁ )^(T); establish vector {right arrow over (C₁O₁)}, {right arrow over (C₁O₁)}=(x_(O) ₁ −

y_(O) ₁ −

z_(O) ₁ −z_(C) ₁ )^(T)=(x_(O) ₁ ′ y_(O) ₁ ′ z_(O) ₁ ′)^(T);

is the coordinate of the point O₁ of the connected base coordinate system in the public reference base coordinate system; and use the same method to create vector

vector {right arrow over (C₁Y₁)} and vector {right arrow over (C₁Z₁)};

(c) doing a vector product of unitized {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} to get: {right arrow over (Y)}={right arrow over (C₁C₂)}× {right arrow over (C₁C₃)}, doing a vector product of {right arrow over (X)}={right arrow over (C₁C₂)} and {right arrow over (Y)} to get: {right arrow over (Z)}={right arrow over (X)}×{right arrow over (Y)}, thus, establishing a coordinate system C_(xyz) by taking feature point C₁ as an origin, the coordinate axis vector of the coordinate system C_(xyz) is: X_(C) _(xyz) =

=

=(

z_(C) _(z) )^(T), calculating angles

γ_(x) between the vector {right arrow over (X_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system through the calculation formula of the space vector angle, calculating angles

γ_(y) between the vector Y_(C) _(xyz) and the X axis, Y axis and Z axis of the public reference base coordinate system, calculating angles

γ_(z) between the vector {right arrow over (Z_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system; wherein the calculation formula for the angle of the space vector is:

${{\cos\mspace{11mu}\varphi} = \frac{{{m_{1}m_{2}} + {n_{1}n_{2}} + {p_{1}p_{2}}}}{\sqrt{m_{1}^{2} + n_{1}^{2} + p_{1}^{2}} \times \sqrt{m_{2}^{2} + n_{2}^{2} + p_{2}^{2}}}};$

wherein

p₂ respectively correspond to the X coordinate, Y coordinate, and Z coordinate of the space vector;

the coordinate conversion matrix is:

$\begin{matrix} {{A = \begin{pmatrix} {\cos\mspace{11mu}\alpha_{x}} & {\cos\mspace{11mu}\beta_{x}} & {\cos\mspace{11mu}\gamma_{x}} \\ {\cos\mspace{11mu}\alpha_{y}} & {\cos\mspace{11mu}\beta_{y}} & {\cos\mspace{11mu}\gamma_{z}} \\ {\cos\mspace{11mu}\alpha_{z}} & {\cos\mspace{11mu}\beta_{z}} & {\cos\mspace{11mu}\gamma_{z}} \end{pmatrix}};} & (1) \end{matrix}$

the coordinates of point O₁ under the coordinate system C_(xyz) are obtained by formula (2):

$\begin{matrix} {{O_{1_{C_{xyz}}} = {{A^{*}\overset{\rightarrow}{C_{1}O_{1}}} = {{\begin{pmatrix} {\cos\mspace{11mu}\alpha_{x}} & {\cos\mspace{11mu}\beta_{x}} & {\cos\mspace{11mu}\gamma_{x}} \\ {\cos\mspace{11mu}\alpha_{y}} & {\cos\mspace{11mu}\beta_{y}} & {\cos\mspace{11mu}\gamma_{z}} \\ {\cos\mspace{11mu}\alpha_{z}} & {\cos\mspace{11mu}\beta_{z}} & {\cos\mspace{11mu}\gamma_{z}} \end{pmatrix}\begin{pmatrix} {x_{o_{I}}}^{\;^{\prime}} \\ {y_{o_{1}}}^{\;^{\prime}} \\ {z_{o_{1}}}^{\;^{\prime}} \end{pmatrix}} = \begin{pmatrix} x_{O_{1C_{xy}}} \\ y_{O_{{IC}_{xyz}}} \\ z_{O_{1C_{xyz}}} \end{pmatrix}}}};} & (2) \end{matrix}$

wherein, {right arrow over (C₁O₁)}=(x_(O) ₁ ′ y_(O) ₁ ′ z_(O) ₁ ′)^(T), and obtained from step (b);

similarly,

${X_{1_{C_{xyz}}} = {A^{*}{\overset{\rightarrow}{C_{1}X}}_{1}}},{{Y_{1_{C_{xyz}}}} = {{A^{*}\overset{\rightarrow}{C_{1}Y_{1}}\mspace{14mu}{and}\mspace{14mu} Z_{1_{C_{xyz}}}} = {A^{*}\overset{\rightarrow}{C_{1}Z_{1}}}}},$

wherein the coordinates corresponding to

X_(1_(C_(xyz))), Y_(1_(C_(xyz))), Z_(1_(C_(xyz)))

are the coordinates of points X₁,

Z₁ under the coordinate system C_(xyz); the vector {right arrow over (C₁X₁)}, the vector {right arrow over (C₁Y₁)}, and the vector {right arrow over (C₁Z₁)} are all obtained from the above-mentioned step (b); the coordinates corresponding to

O_(1_(C_(xyz)))X_(1_(C_(xyz)))Y_(1_(C_(xyz)))Z_(1_(C_(xyz)))

are use coordinates of points

Z₁ under the feature point coordinate system C_(xyz), that is, it represents the inherent relationship between the feature point and the connected base coordinate system. The inherent relationship in this embodiment is:

$S_{e} = {\left( {O_{1_{C_{xyz}}}X_{1_{C_{xyz}}}Y_{1_{C_{xyz}}}Z_{1_{C_{xyz}}}} \right) = {\begin{pmatrix} {{8.3}580} & {{7.3}782} & {{8.3}534} & {{8.2}740} \\ {{- 1}{2.4}324} & {- 12.3469} & {- 12.4959} & {{- 1}{3.4}267} \\ {{- {2.3}}046} & {{- {2.3}}054} & {{- {3.2}}860} & {{- {2.2}}420} \end{pmatrix} \circ}}$

The fruit space motion process is divided into translation, swing and torsion, and the motion process is shown in FIG. 6. The binocular-vision-based method of tracking fruit space attitude first uses two high-speed cameras 1-1 (M310, VEO 410) to photograph the fruit dynamic motion, and the movement of the fruit under a certain frequency of excitation. Use Phantom software to store each frame of image in the photographed video, and use TEMA software to process the feature points in each frame of image, export the absolute coordinate of the feature point on the fruit surface of each frame of image in the video, as shown in FIGS. 3 to 5, FIG. 3 is the x-coordinate diagram of the feature point C₁, FIG. 4 is the y-coordinate diagram of the feature point C₁, and FIG. 5 is the z-coordinate diagram of the feature point C₁, which represents the feature point motion curve in the video. The abscissas in FIGS. 3 to 5 represent each moment corresponding to each frame of image. According to the inherent relationship between the feature points and the connected base coordinate system, the absolute coordinate of each frame of image corresponding to the connected base coordinate system points

Z₁ at each moment being calculated by the inverse rotation transformation, and calculating an angle between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula, and the angle representing the swing posture of the fruit. Rotate the {right arrow over (O₁Z₁)} at each moment to a position that coincides with the Z axis in the public reference base coordinate system, and calculating an angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle representing the twisting posture of the fruit, details as follows:

(a1) Use two high-speed cameras 1-1 to photograph fruit dynamic motion, use Phantom software to store each frame of image of the photographed video, use TEMA software to process the feature point in the image, and export the absolute coordinate of the feature point on the fruit surface frame by frame;

(b1) Follow the above-mentioned steps (b) and (c) to establish a coordinate system C_(xyz) by taking the feature point C₁ in one frame of image corresponding to t moment as an origin;

${\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}},\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$

are the coordinate axis vector of the coordinate system C_(xyz) established by taking the feature point C₁ in one frame of image corresponding to t moment as an origin;

calculating angles

γ_(x) _(t) between the vector

$\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}$

and the X axis, Y axis, and Z axis of the public reference base coordinate system at t moment through the calculation formula of the space vector angle, calculating angles

γ_(y) _(t) between the vector

$\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}$

and the X axis, Y axis and Z axis of the public reference base coordinate system, calculating angles

γ_(z) _(t) between the vector

$\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$

and the X axis, Y axis and Z axis of the public reference base coordinate system, then the coordinate conversion matrix at t moment is:

$\begin{matrix} {{A_{t} = \begin{pmatrix} {\cos\;\alpha_{xt}} & {\cos\;\beta_{xt}} & {\cos\;\gamma_{xt}} \\ {\cos\;\alpha_{yt}} & {\cos\;\beta_{yt}} & {\cos\;\gamma_{yt}} \\ {\cos\;\alpha_{zt}} & {\cos\;\beta_{zt}} & {\cos\;\gamma_{zt}} \end{pmatrix}};} & (3) \end{matrix}$

the coordinates of point O₁ in the public reference base coordinate system, that is, the absolute coordinate is:

$\begin{matrix} {{\begin{pmatrix} x_{O_{1}} \\ y_{O_{1}} \\ z_{O_{1}} \end{pmatrix} = {\begin{pmatrix} x_{C_{1}} \\ y_{C_{1}} \\ z_{C_{1}} \end{pmatrix} + {A_{t}^{{- 1}*}\begin{pmatrix} x_{O_{1C_{xyz}}} \\ y_{O_{1C_{xyz}}} \\ z_{O_{1C_{xyz}}} \end{pmatrix}}}};} & (4) \end{matrix}$

wherein (

z_(O) ₁ ) are the absolute coordinate of the point O₁ under t moment, (

Z_(O) ₁ ) are the absolute coordinate of the point C₁ under t moment,

(x_(O_(1C_(xyz)))y_(O_(1C_(xyz)))z_(O_(1C_(xyz))))

are the coordinate of point O₁ in the coordinate system C_(xyz); similarly, calculating the absolute coordinate of the points

Z₁ under t moment;

wherein, the vector corresponding to the absolute coordinate of point X₁ at t moment is equal to the vector corresponding to the absolute coordinate of point C₁ at t moment plus the vector of A_(t) ⁻¹ multiplied by the coordinates of point X₁ under the coordinate system C_(xyz); the absolute coordinate calculation method of point Y₁ and point Z₁ can be deduced by analogy;

each frame of image is independent of each other, and corresponds to a moment respectively, and solves the absolute coordinates of the points

Z₁ of the connected base coordinate system at each moment frame by frame; calculate the angle θ between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula:

$\begin{matrix} {{\theta = {\arccos\left( \frac{{{x_{Z_{1}}x_{Z}} + {y_{Z_{1}}y_{Z}} + {z_{Z_{1}}z_{Z}}}}{\sqrt{x_{Z_{1}}^{2} + y_{Z_{1}}^{2} + z_{Z_{1}}^{2}} \times \sqrt{x_{Z}^{2} + y_{Z}^{2} + z_{Z}^{2}}} \right)}};} & (5) \end{matrix}$

wherein {right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ z_(z) ₁ )^(T),

is the unit vector of the Z axis in the public reference base coordinate system, the angle θ between the vector {right arrow over (O₁Z₁)} and the Z axis in the public reference, base coordinate system represents a swing posture of the fruit.

(c1) using the axis rotation matrix to rotate {right arrow over (O₁Z₁)} (that is, Z connected-axis) at the moment corresponding to a certain frame of image to a position that coincides with the Z axis in the public reference base coordinate system, calculating the angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle represents a twisting posture of the fruit at the moment corresponding to the frame image, detail as follows:

the Z connected-axis direction vector of the frame of image is:

={right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ z_(z) ₁ )^(T), |{right arrow over (O₁Z₁)}|=√{square root over (x_(Z) ₁ ²+y_(Z) ₁ ²+z_(Z) ₁ ²)}, calculating the angle φ between the Z connected-axis and the Z axis in the public reference base coordinate system:

$\begin{matrix} {{\varphi = {\arccos\mspace{11mu}\left( \frac{Z_{Z_{1}}}{\overset{\rightarrow}{O_{1}Z_{1}}} \right)}};} & (6) \end{matrix}$

calculating the angle ψ between the projection of {right arrow over (O₁Z₁)} (that is, Z connected-axis) in the X axis and Y axis of the public reference base coordinate system and the Y axis of the public reference base coordinate system:

$\begin{matrix} {{\psi = {\arccos\left( \frac{y_{Z_{1}}}{\sqrt{y_{Z_{1}}^{2} + x_{Z_{1}}^{2}}} \right)}};} & (7) \end{matrix}$

calculating the axis rotation matrix:

$\begin{matrix} {{T_{1} = \begin{pmatrix} {\cos\;\varphi} & 0 & {\sin\;\varphi} \\ 0 & 1 & 0 \\ {{- \sin}\;\varphi} & 0 & {\cos\;\varphi} \end{pmatrix}};} & (8) \end{matrix}$

$\begin{matrix} {{T_{2} = \begin{pmatrix} {\cos\;\psi} & {{- \sin}\;\psi} & 0 \\ {\sin\;\psi} & {\cos\;\psi} & 0 \\ 0 & 0 & 1 \end{pmatrix}};} & (9) \end{matrix}$

the absolute coordinate of the rotated point X₁ is consistent with the coordinate of the rotated vector {right arrow over (O₁X₁)}, and the rotated vector {right arrow over (O₁X₁)} is:

$\begin{matrix} {{\begin{pmatrix} x_{X_{1}}^{\prime} \\ y_{X_{1}}^{\prime} \\ z_{X_{1}}^{\prime} \end{pmatrix} = {T_{2}^{{- 1}*}{T_{1}^{{- 1}*}\begin{pmatrix} x_{X_{1}} \\ y_{X_{1}} \\ z_{X_{1}} \end{pmatrix}}}};} & (10) \end{matrix}$

wherein,

is the vector {right arrow over (O₁X₁)} before the {right arrow over (O₁Z₁)} of the frame of image is rotated;

the torsion angular degree is:

$\begin{matrix} {{\phi = {\arccos\left( \frac{{{x_{X_{1}^{\prime}}x_{X}} + {y_{X_{1}^{\prime}}y_{X}} + {z_{X_{1}^{\prime}}z_{X}}}}{\sqrt{x_{X_{1}^{\prime\; 2}} + y_{X_{1}^{\prime\; 2}} + z_{X_{1}^{\prime 2}}} \times \sqrt{x_{X^{2}} + y_{X^{2}} + z_{X^{2}}}} \right)}};} & (11) \end{matrix}$

the torsion angular degree is the angle between the rotated vector {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, which represents the torsion posture of the fruit at the moment corresponding to the frame image, wherein

is the unit vector of the X axis in the public reference base coordinate system.

(d1) Similarly, in step (c1), calculating the twisting posture of the fruit at each moment corresponding to each frame image.

A study method of fruit space motion, the space motion of fruit needs to use public reference base coordinates to express its absolute motion. Setting the moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O₁ of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of point O₁ along the X axis, Y axis and Z axis of the public reference base coordinate system at t+1 moment and t moment respectively. calculating an instantaneous speed along the X axis, an instantaneous speed along the Y axis, and an instantaneous speed along the Z axis of the fruit at t moment according to the displacement, calculating an instantaneous acceleration along the X axis, an instantaneous acceleration along the Y axis and an instantaneous acceleration along the Z axis of the fruit at t moment according to the instantaneous speed, calculating a swing angular displacement of the fruit in the time interval between two adjacent frames of images, sequentially calculating a swing angular speed of the fruit at t moment and a swing angular acceleration of the fruit at t moment via the swing angular displacement, and calculating the torsion angular speed of the fruit at t moment and the torsion angular acceleration of the fruit at t moment according to the torsion angular degree from t moment to t+1 moment. The fruit space motion process is divided into translation, swing and torsion, and the motion process is shown in FIG. 6. The movement of the point O₁ along the X Y Z axis represents the translation of the fruit, the swing around the junction of the fruit stem and the fruit represents the swing of the fruit, and the twisting movement around the centerline (that is, Z connected-axis) represents the twist of the fruit. FIG. 7 shows the spatial translation trajectory of fruit, and the curve in FIG. 7 shows the movement of the point O₁ in the space coordinates of the public reference base coordinate system.

Wherein, the instantaneous speed moving along the X Y Z axis, the instantaneous acceleration moving along the X Y Z axis, the swing angular displacement, the swing angular speed, and the swing angular acceleration within the frame time interval, the torsion angular degree, the torsion angular speed, and the torsion angular acceleration within the frame time interval all indicate the tracked fruit space motion status. The specific calculation method is as follows:

(a2) setting moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O₁ of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of the point O₁ along the X axis of the public reference base coordinate system at t+1 moment and t moment respectively:

S _(x) =x _(O) _(t+1) −x _(O) ₁   (12);

-   -   wherein         x_(O) ₁ are the coordinates x of the point O₁ under the public         reference base coordinate system at t+1 moment and t moment;         similarly, calculating the displacement S_(y) along the Y axis         and the displacement S_(z) along the Z axis of the point O₁ of         the public reference base coordinate system at t+1 moment and t         moment, and the combined displacement is:

S=√{square root over (S _(x) ² +S _(y) ² +S _(z) ²)}  (13);

(b2) using the average speed of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous speed v_(x(t)) of the fruit along the X axis at t moment:

$\begin{matrix} {{v_{x{(t)}} = \frac{S_{x}}{\Delta t}};} & (14) \end{matrix}$

wherein Δt is the interval time between two frames of images; similarly, the instantaneous speed v_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous speed v_(z (t)) of the fruit along the Z axis at t moment can be obtained, then the combined speed of the fruit at t moment is:

v=√{square root over (v _(x (t)) ² +V _(y (t)) ² +v _(z (t)) ²)}  (15);

(c2) using the acceleration of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous acceleration a_(x(t)) of the fruit along the X axis at the t moment:

$\begin{matrix} {{a_{x{(t)}} = \frac{v_{x{({t + 1})}} - v_{x{(t)}}}{\Delta t}};} & ({l6}) \end{matrix}$

wherein v_(x (t+1)) is the instantaneous speed of the fruit along the X axis at t+1 moment, and v_(x(t)) is the instantaneous speed of the fruit along the X axis at t moment; similarly, the instantaneous acceleration a_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous acceleration a_(z (t)) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained; then the combined acceleration of the fruit at t moment is:

a=√{square root over (a _(x (t)) ² +a _(y (t)) ² +a _(z (t)) ²)}  (17);

(d2) since there are too many solving moments, this embodiment lists the positions of the connected base coordinate system of adjacent t+1 moment and t moment corresponding to two adjacent frames of images to indicate the swing and twist of the fruit. For convenience of representation, the origins of the conjoined base coordinates of two adjacent moments are overlapped, as shown in FIG. 8, the angle Δθ in FIG. 8 is the angle from t moment Z connected-axis to t+1 moment Z connected-axis, and Δθ represents the swing angular displacement of the fruit in Δt:

$\begin{matrix} {{{\Delta\theta} = {\arccos\left( \frac{{{x_{Z_{1_{t + 1}}}x_{Z_{1_{t}}}} + {y_{Z_{1_{t + 1}}}y_{Z_{1_{t}}}} + {z_{Z_{1_{t + 1}}}z_{Z_{1_{t}}}}}}{\sqrt{x_{Z_{1_{t + 1}}}^{2} + y_{Z_{z_{t + 1}}}^{2} + z_{Z_{1_{t + 1}}}^{2}} \times \sqrt{x_{Z_{1_{t}}}^{2} + y_{Z_{1_{t}}}^{2} + z_{Z_{1_{t}}}^{2}}} \right)}};} & (18) \end{matrix}$

wherein

(x_(Z_(1_(t)))   y_(Z_(1_(t)))    z_(Z_(1_(t))))^(T)

is the direction vector of Z connected-axis at t moment, that is t moment vector {right arrow over (O₁Z₁)};

(x_(Z_(1_(t + 1)))   y_(Z_(1_(t + 1)))    z_(Z_(1_(t + 1))))^(T)

is the direction vector of Z connected-axis at t+1 moment, that is t+1 moment vector {right arrow over (O₁Z₁)};

(e2) using the average swing angular speed from t moment to t+1 moment to express the t swing angular speed ω_(θ) _(t) of the fruit at t moment:

$\begin{matrix} {{\omega_{\theta_{t}} = \frac{\Delta\theta}{\Delta t}};} & (19) \end{matrix}$

(f2) using the amount of change of the swing angular speed from t moment to t+1 moment to express the swing angular acceleration a_(θ) _(t) of the fruit at t moment:

$\begin{matrix} {{a_{\theta_{t}} = \frac{\omega_{\theta_{t + 1}} - \omega_{\theta_{t}}}{\Delta t}};} & (20) \end{matrix}$

(g2) FIG. 8 is a schematic diagram of the overlapping conjoined base coordinate origins of two adjacent moments. The angle Δθ between the Z connected-axis of t moment and t+1 moment in FIG. 8 represents the swing angular displacement of the fruit in Δt. However, the angle between the X connected-axis of t moment and t+1 moment, and the angle between the Y connected-axis of t moment and t+1 moment in FIG. 8 are not the torsion angular. Therefore, it is necessary to rotate the Z connected-axis of t moment (also expressed as {right arrow over (O₁Z₁)}) and the Z connected-axis of t+1 moment to the position that coincides with the Z connected-axis in the public reference base coordinate system through the axis rotation matrix. As shown in FIG. 9, the two Z connected-axes in this FIG. 9 coincide with the Z axis in the public reference base coordinate system. The angle between the two X connected-axis at this time is the torsion angular degree from t moment to t+1 moment, and the calculation method is: use the formula (6) to formula (10) in the above-mentioned step (c1) respectively calculate the rotated vector {right arrow over (O₁X₁)} at t moment and the rotated vector {right arrow over (O₁X₁)} at t+1 moment.

similarly, in formula (10) of step (c1), the vector {right arrow over (O₁X₁)} rotated at t moment is:

$\begin{matrix} {{\begin{pmatrix} x_{X_{1_{t}}}^{\prime} \\ y_{X_{1_{t}}}^{\prime} \\ z_{X_{1_{t}}}^{\prime} \end{pmatrix} = {T_{2_{t}}^{- 1}*T_{1_{t}}^{- 1}*\begin{pmatrix} x_{X_{1_{t}}} \\ y_{X_{1_{t}}} \\ z_{X_{1_{t}}} \end{pmatrix}}};} & (21) \end{matrix}$

wherein

(x_(X_(1_(t)))     y_(X_(1_(t)))   z_(X_(1_(t))))^(T)

is the vector {right arrow over (O₁X₁)} before the Z connected-axis rotation at t moment;

(x_(X_(1_(t)))^(′)     y_(X_(1_(t)))^(′)   z_(X_(1_(t)))^(′))^(T)

is the vector {right arrow over (O₁X₁)} after the Z connected-axis rotation at t moment; T₂ _(t) ⁻¹ and T₁ _(t) ⁻¹ are the axis rotation matrices under t moment;

the torsion angular speed degree of the fruit from t moment to t+1 moment is:

$\begin{matrix} {{{\Delta\phi} = {\arccos\left( \frac{{{x_{X_{1_{t + 1}}^{\prime}}x_{X_{t}}} + {y_{X_{1_{t + 1}}^{\prime}}y_{X_{t}}} + {z_{X_{1_{t + 1}}^{\prime}}z_{X_{t}}}}}{\sqrt{x_{X_{1_{t + 1}}^{\prime\; 2}} + y_{X_{1_{t + 1}}^{\prime\; 2}} + z_{X_{1_{t + 1}}^{\prime\; 2}}} \times \sqrt{x_{X_{t}^{2}} + y_{X_{t}^{2}} + z_{X_{t}^{2}}}} \right)}};} & (22) \end{matrix}$

wherein

(x_(X_(1_(t)))^(′)     y_(X_(1_(t)))^(′)   z_(X_(1_(t)))^(′))^(T)

is the rotated vector {right arrow over (O₁X₁)} at t moment,

(x_(X_(1_(t + 1)))^(′)     y_(X_(1_(t + 1)))^(′)   z_(X_(1_(t + 1)))^(′))^(T)

is the rotated vector {right arrow over (O₁X₁)} at t+1 moment;

the torsion angular speed of the fruit at t moment is:

$\begin{matrix} {{\omega_{\phi_{t}} = \frac{\Delta\phi}{\Delta t}};} & (23) \end{matrix}$

the torsion angular acceleration of the fruit at t moment is:

$\begin{matrix} {a_{\phi_{t}} = {\frac{\omega_{\phi_{t + 1}} - \omega_{\phi_{t}}}{\Delta\; t}.}} & (24) \end{matrix}$

When the inertial force generated by the vibration of vibrating fruit picking exceeds the separation force between the fruit and the fruit stem, the fruit is separated from the fruit branch or the fruit stem at the weakest connection point to complete the picking. The effect of fruit separation ultimately depends on the maximum inertial force generated when the fruit vibrates. Inertial force comes from acceleration, so acceleration response is one of the most important characteristics in fruit tree dynamics. This method can construct the trajectory of the fruit in the vibration process through the relationship between the conjoined base at the junction of the fruit stem and the fruit, and then solve the displacement, speed and acceleration of fruit at each moment, which is beneficial to explore the law of fruit movement. The binocular-vision-based method for tracking fruit space attitude and fruit space motion, the system and analysis software for taking fruit vibration photography belong to the prior art, such as binocular cameras and spatial position synthesis software.

The scope of protection of the present invention includes, but is not limited to, the above-mentioned embodiments. The scope of protection of the present invention is subject to the claims. Any substitutions, modifications, and improvements that can be easily conceived by those skilled in the art made to the present invention fall within the scope of protection of the present invention. 

What is claimed is as new and desired to be protected by Letters Patent, is:
 1. A binocular-vision-based method for tracking fruit space attitude and fruit space motion, comprising: (1) marking three feature points

C₃ on a surface of a fruit; (2) establishing a connected base coordinate system by taking a junction of the fruit and a fruit stem as an origin, a X axis, a Y axis, and a Z axis of the connected base coordinate system are marked as a X connected-axis, a Y connected-axis and a Z connected-axis, respectively, and the origin of the connected base coordinate system is marked as O₁, an end point of the unit vector in a positive direction of the X connected-axis is marked as X₁, an end point of the unit vector in a positive direction of the Y connected-axis is marked as Y₁, an end point of the unit vector in a positive direction of the Z connected-axis is marked as Z₁; (3) establishing a public reference base coordinate system; (4) statically photographing the three feature points on the surface of the fruit and connected base coordinate system points _(C) established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points and connected base coordinate system points

Z₁ in the images, acquiring a absolute coordinate of the feature points

C₃ and the connected base coordinate system points

Z₁ and then acquiring an inherit relationship between the feature points and the connected base coordinate system; (5) photographing the fruit dynamic motion, using Phantom software to store each frame of the image in the photographed video, using TEMA software to process the feature points in the images to acquiring the absolute coordinate of the feature points on the fruit surface, according to an inherent relationship between the feature points and the connected base coordinate system, the absolute coordinate of each frame of image corresponding to the connected base coordinate system points

Z₁ at each moment being calculated by inverse rotation transformation, and calculating an angle between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula, and the angle representing a swing posture of the fruit; (6) rotating the {right arrow over (O₁Z₁)} at each moment to a position that coincides with the Z axis in the public reference base coordinate system, and calculating an angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle representing a twisting posture of the fruit; and (7) setting moments corresponding to two adjacent frames to t+1 moment and t moment, and calculating a displacement of the point O₁ along the X axis, Y axis and Z axis of the public reference base coordinate system at t+1 moment and t moment respectively, calculating an instantaneous speed along the X axis, an instantaneous speed along the Y axis, and an instantaneous speed along the Z axis of the fruit at t moment according to the displacement, calculating an instantaneous acceleration along the X axis, an instantaneous acceleration along the Y axis and an instantaneous acceleration along the Z axis of the fruit at t moment according to the instantaneous speed, calculating a swing angular displacement of the fruit in a time interval between the two adjacent frames of images, sequentially calculating a swing angular speed of the fruit at t moment and a swing angular acceleration of the fruit at t moment via the swing angular displacement, and calculating a torsion angular speed of the fruit at t moment and a torsion angular acceleration of the fruit at t moment according to the torsion angular degree from t moment to t+1 moment.
 2. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 1, wherein: the step (2) includes: establishing the connected base coordinate system by taking a junction of the fruit and the fruit stem as the origin, and taking a line between the junction of the fruit and the fruit stem and a center point of the fruit as a center line, the center line being the Z axis of the connected base coordinate system, which being marked as the Z connected-axis, taking a direction from the central point pointing to the joining point as the positive direction of the Z connected-axis, establishing the X axis and Y axis of the connected base coordinate system on a plane perpendicular to the Z axis of the connected base coordinate system, and marking them as X connected-axis and Y connected-axis respectively; marking the origin of the connected base coordinate system as O₁, marking the end point of the unit vector in the positive direction of the X connected-axis as X₁, marking the end point of the unit vector in the positive direction of the Y₁ connected-axis as Y₁, and marking the end point of the unit vector in the positive direction of the Z connected-axis as Z1.
 3. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 2, wherein: the absolute coordinates are spatial coordinates in the public reference base coordinate system, and the unit vectors of the coordinate axis of the public reference base coordinate system are:

Z=(0 0 1)^(T).
 4. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 3, wherein: the step (4) includes: $\begin{matrix} {{A = \begin{pmatrix} {\cos\;\alpha_{x}} & {\cos\;\beta_{x}} & {\cos\;\gamma_{x}} \\ {\cos\;\alpha_{y}} & {\cos\;\beta_{y}} & {\cos\;\gamma_{z}} \\ {\cos\;\alpha_{z}} & {\cos\;\beta_{z}} & {\cos\;\gamma_{z}} \end{pmatrix}};} & (1) \end{matrix}$ the coordinates of point O₁ under the coordinate system C_(xyz) are obtained by formula (2): $\begin{matrix} {{O_{1_{C_{xyz}}} = {{A*\overset{\rightarrow}{C_{1}O_{1}}} = {{\begin{pmatrix} {\cos\;\alpha_{x}} & {\cos\;\beta_{x}} & {\cos\;\gamma_{x}} \\ {\cos\;\alpha_{y}} & {\cos\;\beta_{y}} & {\cos\;\gamma_{z}} \\ {\cos\;\alpha_{z}} & {\cos\;\beta_{z}} & {\cos\;\gamma_{z}} \end{pmatrix}\begin{pmatrix} x_{O_{1}}^{\prime} \\ y_{O_{1}}^{\prime} \\ z_{O_{1}}^{\prime} \end{pmatrix}} = \begin{pmatrix} x_{O_{1C_{xyz}}} \\ y_{O_{1C_{xyz}}} \\ z_{O_{1C_{xyz}}} \end{pmatrix}}}};} & (2) \end{matrix}$ wherein, {right arrow over (C₁O₁)}=(z_(O) ₁ ′ y_(O) ₁ ′ z_(O) ₁ ′)^(T), and obtained from (b) in step (4); similarly, $X_{1_{C_{xyz}}} = {{A*\overset{\rightarrow}{C_{1}X_{1}}\mspace{14mu}{\mspace{11mu}\;}Y_{1_{C_{xyz}}}} = {{A*\overset{\rightarrow}{C_{1}Y_{1}}\mspace{14mu}{and}\mspace{14mu} Z_{1_{C_{xyz}}}} = {A*\overset{\rightarrow}{C_{1}Z_{1}}}}}$ can be obtained, wherein the coordinates of X_(1_(C_(xyz)))      Y_(1_(C_(xyz)))      Z_(1_(C_(xyz))) are the coordinates of points

Z₁ under the coordinate system C_(xyz); and the coordinates of O_(1_(C_(xyz)))   X_(1_(C_(xyz)))      Y_(1_(C_(xyz)))     Z_(1_(C_(xyz))) are the coordinates of points

Z₁ under the coordinate system C_(xyz), that is, representing the inherent relationship between the feature point and the connected base coordinate system.
 5. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 4, wherein: the step (5) includes: (a) using two high-speed cameras to photograph the fruit dynamic motion, using Phantom software to store each frame of image of the photographed video, using TEMA software to process the feature points in the images, and obtaining the absolute coordinate of the feature points on the surface of the fruit; (a) under static conditions, using two high-speed cameras to statically photograph the three feature points on the surface of the fruit and the points

Z₁ of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points

C₃ and the connected base coordinate system points

Z₁ in the images, acquiring the absolute coordinate of the feature points

C₃ and the absolute coordinate of the connected base coordinate system points

Z₁; (b) creating vectors {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} via absolute coordinate, unitizing {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)}, creating vector

vector

vector {right arrow over (C₁Y₁)} and vector {right arrow over (C₁Z₁)}; c) doing a vector product of unitized {right arrow over (C₁C₂)} and {right arrow over (C₁C₃)} to get: {right arrow over (Y)}={right arrow over (C₁C₂)}×{right arrow over (C₁C₃)}, doing a vector product of {right arrow over (X)}={right arrow over (C₁C₂)} and {right arrow over (Y)} to get: {right arrow over (Z)}={right arrow over (X)}×{right arrow over (Y)}, thus, establishing a coordinate system C_(xyz) by taking feature point C₁ as an origin, the coordinate axis vector of the coordinate system C_(xyz) is: {right arrow over (X_(C) _(xyz) )}=

{right arrow over (T_(C) _(xyz) )}=

{right arrow over (Z_(C) _(xyz) )}=

calculating angles

γ_(x) between the vector {right arrow over (X_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system through the calculation formula of the space vector angle, calculating angles

γ_(y) between the vector {right arrow over (Y_(C) _(xyz) )} and the X axis, Y axis and Z axis of the public reference base coordinate system, calculating angles

γ_(z) between the vector {right arrow over (Z_(C) _(xyz) )} and the X-axis, Y-axis and Z-axis of the public reference base coordinate system, then the coordinate conversion matrix is: (b) calculating angles

γ_(x) _(t) between the vector $\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}$ and the X axis, Y axis, and Z axis of the public reference base coordinate system at t moment through the calculation formula of the space vector angle, calculating angles

γ_(y) _(t) between the vector $\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}$ and the X axis, Y axis and Z axis of the public reference base coordinate system, calculating angles

γ_(z) _(t) between the vector $\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$ and the X axis, Y axis and Z axis of the public reference base coordinate system, wherein, $\overset{\rightarrow}{X_{C_{{xyz}_{t}}}}\mspace{20mu}{\;\mspace{20mu}}\overset{\rightarrow}{Y_{C_{{xyz}_{t}}}}\mspace{14mu}{\;\mspace{14mu}}\overset{\rightarrow}{Z_{C_{{xyz}_{t}}}}$ are the coordinate axis vector of the coordinate system C_(xyz) established by taking the feature point C₁ in one frame of image corresponding to the t moment as an origin, then the coordinate conversion matrix is: $\begin{matrix} {{A_{t} = \begin{pmatrix} {\cos\;\alpha_{xt}} & {\cos\;\beta_{xt}} & {\cos\;\gamma_{xt}} \\ {\cos\;\alpha_{y_{t}}} & {\cos\;\beta_{yt}} & {\cos\;\gamma_{zt}} \\ {\cos\mspace{2mu}\alpha_{zt}} & {\cos\;\beta_{zt}} & {\cos\;\gamma_{zt}} \end{pmatrix}};} & (3) \end{matrix}$ the coordinates of point O₁ in the public reference base coordinate system, that is, the absolute coordinate is: $\begin{matrix} {{\begin{pmatrix} x_{O_{1}} \\ y_{O_{1}} \\ z_{O_{1}} \end{pmatrix} = {\begin{pmatrix} x_{C_{1}} \\ y_{C_{1}} \\ z_{C_{1}} \end{pmatrix} + {A_{t}^{- 1}\begin{pmatrix} x_{O_{1C_{xyz}}} \\ y_{O_{1C_{xyz}}} \\ z_{O_{1C_{xyz}}} \end{pmatrix}}}};} & (4) \end{matrix}$ wherein (

z_(O) ₁ ) are the absolute coordinate of the point O₁ under t moment, (

z_(C) ₁ ) are the absolute coordinate of the point C₁ under t moment, (x_(O_(1C_(xyz)))   y_(O_(1C_(xyz)))   z_(O_(1C_(xyz)))) are the coordinate of point O₁ in the coordinate system C_(xyz); similarly, calculating the absolute coordinate of the points

Z₁ under t moment; each frame of image is independent of each other, and corresponds to a moment respectively, and solves the absolute coordinates of the points

Z₁ of the connected base coordinate system frame by frame; calculating the angle θ between the vector {right arrow over (O₁Z₁)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula: $\begin{matrix} {{\theta = {\arccos\left( \frac{{{x_{Z_{1}}x_{Z}} + {y_{Z_{1}}y_{Z}} + {z_{Z_{1}}z_{Z}}}}{\sqrt{x_{Z_{1}}^{2} + y_{Z_{1}}^{2} + z_{Z_{1}}^{2}} \times \sqrt{x_{Z}^{2} + y_{Z}^{2} + z_{Z}^{2}}} \right)}};} & (5) \end{matrix}$ and wherein {right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ z_(z) ₁ )^(T),

is the unit vector of the Z axis in the public reference base coordinate system, the angle θ between the vector {right arrow over (O₁Z₁)} and the Z axis in the public reference base coordinate system represents a swing posture of the fruit.
 6. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 5, wherein: the step (6) includes: (a) using the axis rotation matrix to rotate {right arrow over (O₁Z₁)} at the moment corresponding to a certain frame of image to a position that coincides with the Z axis in the public reference base coordinate system, calculating the angle between the rotated {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, the angle represents an twisting posture of the fruit at the moment corresponding to the frame image, detail as follows: the Z connected-axis direction vector of the frame of image is:

={right arrow over (O₁Z₁)}=(x_(z) ₁ y_(z) ₁ z_(z) ₁ )^(T), |{right arrow over (O₁Z₁)}|=√{square root over (x_(Z) ₁ ²+y_(Z) ₁ ²+z_(Z) ₁ ²)}, calculating the angle φ between the Z connected-axis and the Z axis in the public reference base coordinate system: $\begin{matrix} {{\varphi = {\arccos\left( \frac{Z_{Z_{1}}}{\overset{\rightarrow}{O_{1}Z_{1}}} \right)}};} & (6) \end{matrix}$ calculating the angle ψ between the projection of the Z connected-axis in the X axis and Y axis of the public reference base coordinate system and the Y axis of the public reference base coordinate system: $\begin{matrix} {{\psi = {\arccos\left( \frac{y_{Z_{1}}}{\sqrt{y_{Z_{1}}^{2} + x_{Z_{1}}^{2}}} \right)}};} & (7) \end{matrix}$ calculating the axis rotation matrix: $\begin{matrix} {{T_{1} = \begin{pmatrix} {\cos\;\varphi} & 0 & {\sin\;\varphi} \\ 0 & 1 & 0 \\ {{- \sin}\;\varphi} & 0 & {\cos\;\varphi} \end{pmatrix}};} & (8) \\ {{T_{2} = \begin{pmatrix} {\cos\;\psi} & {{- \sin}\;\psi} & 0 \\ {\sin\;\psi} & {\cos\;\psi} & 0 \\ 0 & 0 & 1 \end{pmatrix}};} & (9) \end{matrix}$ the absolute coordinate of the rotated point X₁ is consistent with the coordinate of the rotated vector {right arrow over (O₁X₁)}, and the rotated vector {right arrow over (O₁X₁)} is: $\begin{matrix} {{\begin{pmatrix} x_{X_{1}^{\prime}} \\ y_{X_{1}^{\prime}} \\ z_{X_{1}^{\prime}} \end{pmatrix} = {T_{2}^{- 1}*T_{1}^{- 1}*\begin{pmatrix} x_{X_{1}} \\ y_{X_{1}} \\ z_{X_{1}} \end{pmatrix}}};} & (10) \end{matrix}$ wherein

is the vector {right arrow over (O₁X₁)} before the {right arrow over (O₁Z₁)} of the frame of image is rotated; the torsion angular degree is: $\begin{matrix} {{\phi = {\arccos\left( \frac{{{x_{X_{1}^{\prime}}x_{X}} + {y_{X_{1}^{\prime}}y_{X}} + {z_{X_{1}^{\prime}}z_{X}}}}{\sqrt{x_{X_{1}^{\prime\; 2}} + y_{X_{1}^{\prime\; 2}} + z_{X_{1}^{\prime\; 2}}} \times \sqrt{x_{X^{2}} + y_{X^{2}} + z_{X^{2}}}} \right)}};} & (11) \end{matrix}$ the torsion angular degree is the angle between the rotated vector {right arrow over (O₁X₁)} and the X axis in the public reference base coordinate system, which represents a torsion posture of the fruit at the moment corresponding to the frame image, wherein

is the unit vector of the X axis in the public reference base coordinate system; and (b) similarly, in (a) of step (6), calculating the twisting posture of the fruit at each moment corresponding to each frame image.
 7. The binocular-vision-based method for tracking fruit space attitude and fruit space motion according to claim 6, wherein the step (7) includes: (a) setting moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O₁ of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of the point O₁ along the X axis of the public reference base coordinate system at t+1 moment and t moment respectively: S _(x) =x _(O) _(t+1) −x _(O) ₁   (12); wherein

x_(O) ₁ are the coordinates x of the point O₁ under the public reference base coordinate system at t+1 moment and t moment; similarly, calculating the displacement S_(y) along the Y axis and the displacement S_(z) along the Z axis of the point O₁ of the public reference base coordinate system at t+1 moment and t moment, and the combined displacement is: S=√{square root over (S _(x) ² +S _(y) ² +S _(z) ²)}  (13); (b) using the average speed of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous speed v_(x(t)) of the fruit along the X axis at t moment: $\begin{matrix} {{v_{x{(t)}} = \frac{S_{x}}{\Delta t}};} & (14) \end{matrix}$ wherein Δt is the interval time between two frames of images; similarly, the instantaneous speed v_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous speed v_(z (t)) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained, then the combined speed of the fruit at t moment is: v=√{square root over (v _(x (t)) ² +V _(y (t)) ² +v _(z (t)) ²)}  (15); (c) using the acceleration of the point O₁ moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous acceleration a_(x(t)) of the fruit along the X axis at the t moment: $\begin{matrix} {{a_{x{(t)}} = \frac{v_{x{({t + 1})}} - v_{x{(t)}}}{\Delta t}};} & (16) \end{matrix}$ wherein v_(x (t+1)) is the instantaneous speed of the fruit along the X axis at t+1 moment, and v_(x(t)) is the instantaneous speed of the fruit along the X axis at t moment; similarly, the instantaneous acceleration a_(y (t)) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous acceleration a_(z (t)) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained; then the combined acceleration of the fruit at t moment is: a=√{square root over (a _(x (t)) ² +a _(y (t)) ² +a _(z (t)) ²)}  (17); (d) using the angle from the Z connected-axis at t moment to the Z connected-axis at t+1 moment to represent the swing angular displacement of the fruit in Δt: $\begin{matrix} {{{\Delta\theta} = {\arccos\left( \frac{{{x_{Z_{1_{t + 1}}}x_{Z_{1_{t}}}} + {y_{Z_{1_{t + 1}}}y_{{Z_{1}}_{t}}} + {z_{Z_{1_{t + 1}}}z_{Z_{1_{t}}}}}}{\sqrt{x_{Z_{1_{t + 1}}}^{2} + y_{Z_{1_{t + 1}}}^{2} + z_{Z_{1_{t + 1}}}^{2}} \times \sqrt{x_{Z_{1_{t}}}^{2} + y_{Z_{1_{t}}}^{2} + z_{Z_{1_{t}}}^{2}}} \right)}};} & (18) \end{matrix}$ wherein (x_(Z_(1_(t)))  y_(Z_(1_(t)))  z_(Z_(1_(t))))^(T) is the direction vector of Z connected-axis at t moment, that is t moment vector {right arrow over (O₁Z₁)}; (x_(Z_(1_(t + 1)))      y_(Z_(1_(i + 1)))   z_(Z_(1_(t + 1))))^(T) is the direction vector of Z connected-axis at t+1 moment, that is t+1 moment vector {right arrow over (O₁Z₁)}; (e) using the average swing angular speed from t moment to t+1 moment to express the t swing angular speed ω_(θ) _(t) of the fruit at t moment: $\begin{matrix} {{\omega_{\theta_{t}} = \frac{\Delta\theta}{\Delta t}};} & (19) \end{matrix}$ (f) using the amount of change of the swing angular speed from t moment to t+1 moment to express the swing angular acceleration a_(θ) _(t) of the fruit at t moment: $\begin{matrix} {{a_{\theta_{t}} = \frac{\omega_{\theta_{t + 1}} - \omega_{\theta_{t}}}{\Delta t}};} & (20) \end{matrix}$ (g) using the axis rotation matrix to rotate the Z connected-axis at t moment and the Z connected-axis at t+1 moment to the position that coincides with the Z connected-axis in the public reference base coordinate system, using formula (6) to formula (10) in step (a) of step (6) to calculate the rotated vector {right arrow over (O₁X₁)} at t moment and the rotated vector {right arrow over (O₁X₁)} at t+1 moment, then the torsion angular degree from t moment to t+1 moment is: $\begin{matrix} {{{\Delta\;\phi} = {\arccos\left( \frac{{{x_{X_{1_{t + 1}}^{\prime}}x_{X_{t}}} + {y_{X_{1_{t + 1}}^{\prime}}y_{X_{t}}} + {z_{X_{1_{t + 1}}^{\prime}}z_{X_{t}}}}}{\sqrt{x_{X_{1_{t + 1}}^{\prime\; 2}} + y_{X_{1_{t + 1}}^{\prime\; 2}} + z_{X_{1_{t + 1}}^{\prime\; 2}}} \times \sqrt{x_{X_{t}^{2}} + y_{X_{t}^{2}} + z_{X_{t}^{2}}}} \right)}};} & (21) \end{matrix}$ wherein (x_(X_(1_(t)))^(′)     y_(X_(1_(t)))^(′)     z_(X_(1_(t)))^(′))^(T) is the rotated vector {right arrow over (O₁X₁)} at t moment, (x_(X_(1_(t + 1)))^(′)     y_(X_(1_(t + 1)))^(′)     z_(X_(1_(t + 1)))^(′))^(T) is the rotated vector {right arrow over (O₁X₁)} at t+1 moment; the torsion angular speed of the fruit at t moment is: $\begin{matrix} {{\omega_{\phi_{t}} = \frac{\Delta\;\phi}{\Delta\; t}};} & (22) \end{matrix}$ and the torsion angular acceleration of the fruit at t moment is: $\begin{matrix} {a_{\phi_{t}} = {\frac{\omega_{\phi_{t + 1}} - \omega_{\phi_{t}}}{\Delta\; t}.}} & (23) \end{matrix}$ 